package org.example.salarysystem.pojo;




public class Title {
    private Integer titleId;   // 职称编号
    private String name;       // 职称名称（如讲师、副教授）
    private Integer level;     // 职称等级（数字越小等级越高）

    public Title() {
    }

    public Title(Integer titleId, String name, Integer level) {
        this.titleId = titleId;
        this.name = name;
        this.level = level;
    }

    /**
     * 获取
     * @return titleId
     */
    public Integer getTitleId() {
        return titleId;
    }

    /**
     * 设置
     * @param titleId
     */
    public void setTitleId(Integer titleId) {
        this.titleId = titleId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return level
     */
    public Integer getLevel() {
        return level;
    }

    /**
     * 设置
     * @param level
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    public String toString() {
        return "Title{titleId = " + titleId + ", name = " + name + ", level = " + level + "}";
    }
}
